package com.brillilab.service.core.lab;

import com.brillilab.common.entity.PageVo;
import com.brillilab.domain.po.lab.Organization;
import com.brillilab.domain.vo.lab.OrganizationVo;

import java.util.List;

/**
 * 组织服务接口
 *
 * @author wmh
 */
public interface IOrganizationService {

	Organization insert(Organization org);

	boolean deleteById(Long id);

	boolean updateById(Organization org);

	Organization selectById(Long id);

    /**
     * 查找子组织
     * @param id
     * @return
     */
    List<Organization> selectChildList(Long id);

	List<Organization> orgList(Long parentId);

	PageVo<Organization> queryPage(String name,int pageNum, int pageSize);

	/**
	 * 获取机构列表
	 * @return
	 */
	List<OrganizationVo> getOrgList(Long parentId);
}
